FROM openjdk:11-jdk
LABEL maintainer="testDemo 环境"

# 时区修改为东八区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

WORKDIR /Java
ARG JAR_FILE=target/*.jar
ADD ${JAR_FILE} tesDemo.jar

EXPOSE 8082
ENTRYPOINT ["java", "-Dfile.encoding=utf-8", "-jar", "/java/tesDemo.jar", "--server.prot=8082"]
